﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyBank
{
    class Program
    {
        static void Main(string[] args)
        {
            Bank bank = new Bank();
            //bank.CreateBank();
            //Console.ReadLine();
            bank.Initial();
            bank.ShowAllUser();

            do{
                Console.WriteLine("欢迎使用自助银行服务");
                Console.WriteLine("0.开户 1.存款 2.取款 3.转账 4.查询余额 5.修改密码 6.退出");

                string num = Console.ReadLine();

                switch (num)
                {
                    case "0":
                        Console.WriteLine("开户");
                        continue;
                    case "1":
                        //Console.WriteLine("存款");
                        bank.Deposit();
                        continue;
                    case "2":
                        //Console.WriteLine("取款");
                        bank.WithDraw();
                        continue;
                    case "3":
                        //Console.WriteLine("转账");
                        bank.InputTransferData();
                        continue;
                    case "4":
                        Console.WriteLine("查询余额");
                        continue;
                    case "5":
                        //Console.WriteLine("修改密码");
                        bank.ChangePwd();
                        continue;
                    case "6":
                        Console.WriteLine("退出");
                        break;
                    default:
                        Console.WriteLine("输入错误");
                        break;
                }
                break;
            }while(true);
            

            Console.ReadLine();
        }
    }
}
